using Framework.Core.Process;

namespace Framework.Core.Io
{
    internal class ProcessResultValidator : IProcessResultValidator
    {
        public bool Validate(ProcessResult processResult)
        {
            return processResult.ExitCode >= 0 && string.IsNullOrWhiteSpace(processResult.ErrorOutput);
        }
    }
}